package cn.tedu.announcement.management.pojo.param;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
public class NoticeParam implements Serializable {

    @ApiModelProperty(value = "公告标题", required = true)
    @NotNull(message = "添加公告失败，请填写标题！")
    private String title;

    @ApiModelProperty(value = "公告封面路径", required = true)
    @NotNull(message = "添加公告失败，请选择图片！")
    private String imagUrl;

    @ApiModelProperty(value = "公告内容", required = true)
    @NotNull(message = "添加公告失败，请填写内容！")
    private String content;

}
